﻿using System;
using System.Collections.Generic;
using System.Text;
using GalaSoft.MvvmLight.Ioc;
using MiniProject.Services;
using MiniProject.ViewModels;

namespace MiniProject.ViewModels
{
    //由齐雨泽完成
    public class ViewModelLocator
    {
        public ResultPageViewModel ResultPageViewModel =>
            SimpleIoc.Default.GetInstance<ResultPageViewModel>();

        public ViewModelLocator()
        {
            //SimpleIoc.Default.Register<IPreferenceStorage, PreferenceStorage>();
            SimpleIoc.Default.Register<IPreferenceStorage,PreferenceStorage>();
            SimpleIoc.Default.Register<IFundStorage, FundStorage>();
            SimpleIoc.Default.Register<ResultPageViewModel>();
        }
    }
}
